package com.xmu.prcs.dao;

import java.util.List;

import com.xmu.prcs.entity.Topic;

/**
 * 
 * @author frequent
 * @version 1.0,2010-3-20
 *
 */
public interface TopicDao extends GenericDao<Topic>{

	public final String ID_TOPIC = "idTopic";
	public final String TOPIC_NAME = "topicName";
	public final String POST_NAME = "postNumber";
	public final String NOTE = "note";
	
	/**
	 * 统计话题总数
	 * @param begin
	 * @param size
	 * @return
	 */
	public int countTopics();
	
	/**
	 * 按分页效果得到话题列表
	 * @param begin
	 * @param size
	 * @return
	 */
	public List<Topic> find4page(int begin, int size);
	
	/**
	 * 按某属性得到话题
	 * @param property
	 * @param param
	 * @return
	 */
	public List<Topic> getByProperty(String property, Object param);
}
